<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>订单列表</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" href="../../css/reset.css">
    <link rel="stylesheet" type="text/css" href="../../css/main.css">
    <link rel="stylesheet" type="text/css" href="../../css/member.css">
    <link rel="stylesheet" type="text/css" href="../../css/widget_menu.css">
    <link rel="stylesheet" type="text/css" href="../../css/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="../../css/iconfont/iconfont.css">


</head>
<body>
    <div class="order-list-wp" id="order-list"></div>
    <script type="text/html" id="order-list-tmpl">
        <div class="order-list">
                <ul>
                        <li class="green-order-skin">
                            <div class="order-ltlt">
                                <p>
                                    下单时间：
                                   <%=$getLocalTime(order_info.add_time)%>
                                </p>
                            </div>
                                <div class="order-lcnt">
                                    <div class="order-lcnt-shop">
                                        <p>店铺名称：<%=order_info.store_name%></p>
                                        <p>订单编号：<%=order_info.order_sn%></p>
                                    </div>
                                    <div class="order-shop-pd">
                                        <a class="order-ldetail clearfix <%if(k>0){%>bd-t-de<%}%>" href="<%=WapSiteUrl%>/tmpl/product_detail.html?goods_id=<%=order_info.goods_id%>">
                                            <span class="order-pdpic">
                                                <img src="<%=order_info.goods_image_url%>"/>
                                            </span>
                                            <div class="order-pdinfor">
                                                <p><%=order_info.goods_name%></p>
                                                <p>
                                                    单价：<span class="clr-d94">￥<%=order_info.goods_price%></span>
                                                </p>
                                                 <p>
                                                    商品数目：<%=order_info.goods_num%>
                                                </p>
                                                <p>
                                                    抵扣红包：￥<%=order_info.profit%>
                                                </p>
                                            </div>
                                        </a>
                                    </div>
                                    <div class="order-shop-total">
                                        <p>运费：<span class="clr-d94">￥<%=order_info.shipping_fee%></span></p>
                                        <p class="clr-c07">合计：￥<%=order_info.order_amount%> </p>
                                        <p class="mt5">
                                            <%
                                                var stateClass ="ot-finish";
                                                var orderstate = order_info.order_state;
                                                if(orderstate == 20 || orderstate == 30 || orderstate == 40){
                                                    stateClass = stateClass;
                                                }else if(orderstate == 0) {
                                                    stateClass = "ot-cancel";
                                                }else {
                                                    stateClass = "ot-nofinish";
                                                }
                                            %>
                                            <span class="<%=stateClass%>"><%=order_info.state_desc%></span>
                                        </p>
                                    </div>
                                </div>
                            <%
                            if(orderstate == 10){
                            %>
                                <a href="#"  class="l-btn-login check-payment">微信支付（￥<%= p2f(order_info.order_amount) %>）</a>
                            <%
                            }
                            %>
                        </li>
                </ul>

        </div>
    </script>
    <div data-role="widget" id="widget_wrap" data-widget="menu_4" class="menu_4"></div>

    <script type="text/javascript" src="../../js/zepto.min.js"></script>
    <script type="text/javascript" src="../../js/template.js"></script>
    <script type="text/javascript" src="../../js/config.js"></script>
    <script type="text/javascript" src="../../js/common.js"></script>
	<script type="text/javascript" src="../../js/simple-plugin.js"></script>
    <script type="text/javascript" src="../../js/tmpl/common-top.js"></script>
    <script src="../../js/jweixin-1.0.0.js"></script>
    <script type="text/javascript" src="../../js/tmpl/footer.js"></script>
    <script type="text/javascript" src="../../js/tmpl/v_order.js"></script>
    <script type="text/javascript" src="../../js/footer_menu.js"></script>
</body>
</html>